package com.pretty.test.controller.pets.user.wrapper;

import com.pretty.test.controller.pets.problem.vo.ProblemPageVO;
import com.pretty.test.controller.pets.problem.wrapper.ProblemPageWrapper;
import com.pretty.test.controller.pets.user.vo.LoginVO;
import com.pretty.test.entity.PetsProblem;
import com.pretty.test.entity.PetsUser;
import com.pretty.test.utils.otherutils.BeanUtil;
import com.pretty.test.utils.wrapper.BaseEntityWrapper;

import java.util.Objects;

/**
 * 登录返回数据包装类
 * @author dujianyu
 * @since 2021-04-20
 */
public class LoginVOWrapper extends BaseEntityWrapper<PetsUser, LoginVO> {
    public static LoginVOWrapper build(){
        return new LoginVOWrapper();
    }

    @Override
    public LoginVO entityVO(PetsUser entity) {
        LoginVO vo = Objects.requireNonNull(BeanUtil.copy(entity, LoginVO.class));
        return vo;
    }
}
